"use strict"

/**
 * 云南省招投标网爬虫
 *  
 */

var Base = require("./base");
var yn_spider = new Base();
yn_spider.name = "云南省招投标信息网";

yn_spider.getPageUrl = function(pg) {
    return "http://www.ynbidding.gov.cn/classlist.aspx?no-cache=0.3514593698307322&id=403455695426&id=://www.ynbidding.gov.cn/list&page=" +pg+ "&_=";
};

yn_spider.getItems = function($) {
    var items = [];
    $(".titlelink a").each(function(index, ele) {
        var e = $(ele);
        var item = {};
        item.title = e.text();
        item.url = "http://www.ynbidding.gov.cn" + e.attr("href");
        item.source = yn_spider.name;
        items.push(item);
    });
    return items;
};

exports = module.exports = yn_spider;